 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="Cache-Control" content="No-Cache">
	<meta http-equiv="Pragma" content="No-Cache">

	<title>운세의 신</title>

	<link rel="stylesheet" type="text/css" href="/css/common.css">
	<link rel="stylesheet" type="text/css" href="/css/sub.css">
    <link rel="stylesheet" type="text/css" href="/css/bbs.css"/>

	<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
	<script type="text/javascript">
		$(document).ready(function() {
				// 삭제 버튼 눌렀을때
			$('#btn_remove').click(function() {
				if (confirm('정말 삭제하시겠습니까?')) {
					location.href = "<?=$remove_url?>";
				}
			});
	</script>
</head>
<body>

<div id="wrap">
	<!-- Header -->
	<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/commons/main_header.php'; ?>
	<!--// Header -->

	<!--커튼 데코레이션-->
	<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/commons/drape.php'; ?>
	<!--//커튼 데코레이션-->
    
    <!--컨텐츠-->
	<div id="content">
		<!--휘장-->
		<div class="keybox1"> </div>
		<!--휘장-->
		
		<p class="key_visual"><img src="/images/sub/cs/cs_visual.png" alt="고객센터" /></p>

		<!--왼쪽 컨텐츠-->
		<div class="assistant">
			<!--왼쪽 메뉴-->
			<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/commons/inc_lnb.php'; ?>
			<!--// 왼쪽 메뉴-->

			<!--추천테마-->
			<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/static/theme2.php'; ?>
			<!--//추천테마-->

			
			<!--고객센터-->
			<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/static/cs.php'; ?>
			<!--//고객센터_추가-->
		</div>
		<!--//왼쪽 컨텐츠-->

		<!-- 메인컨텐츠-->
		<div class="cont">
			<!--리스트-->
			<div class="bbs">
				<h3><?=$category_title?></h3>
				
				<div class="read">
				
					<div class="readTit">
						<div class="tit">
							<dl>
								<dt><?=$content['subject']?><span class="user_name"><?=$content['nickname']?></span></dt>
								<dd><?=substr($content['create_dt'], 0,10)?></dd>
								<dd><span>조회</span><?=$content['hit']?></dd>
							</dl>
						</div>
						<div class="vote">
						</div>
					</div>					
					<div class="readContents">
						<span><?=str_replace("\n", "<br/>", $content['content'])?></span>
						<br/><br/>
<?	foreach ($content['file'] as $file_item) : ?>
						<img src="<?=$file_item['file_url']?>" />
<?	endforeach ?>
					</div>

					<!--이전글보기-->
					<div class="readPrev">
						<?	if(!empty($prev_content)) : ?>
						<table width="100%" summary="이전글한줄보기" cellpadding="0" cellspacing="0">
							<caption class="blind">이전글한줄보기</caption>
							<colgroup>
								<col width="13%" />
								<col width="*" />
								<col width="15%" />
								<col width="10%" />
								
								<col width="15%" />
							</colgroup>
							<tbody>
								<tr>
									<td class="signPrev"><img src="/images/common/bullet3.png" alt="이전글블릿" />이전글</td>
									<td class="tle"><a href="<?=$read_url.$prev_content['idx']?>"><?=$prev_content['subject']?><span class="reply">(<?=$prev_content['reply_cnt']?>)</span></a></td>
									<td class="writer"><?=$prev_content['nickname']?></td>
									<td class="vote2"><img src="/images/common/board/icon_heart2.png" alt="공감" /><?=$prev_content['recommend']?></td>
									<td class="hit"><?=$prev_content['hit']?></td>
							   </tr>
							</tbody>
						</table>
						<?	endif ?>
					</div>
					<!--//이전글보기-->
					<!--다음글보기-->
					<div class="readNext">
						<?	if(!empty($next_content)) : ?>
						<table width="100%" summary="다음글한줄보기" cellpadding="0" cellspacing="0">
							<caption class="blind">다음글한줄보기</caption>
							<colgroup>
								<col width="13%" />
								<col width="*" />
								<col width="15%" />
								<col width="10%" />
								<col width="15%" />
							</colgroup>
							<tbody>
								<tr>
									<td class="signNext"><img src="/images/common/bullet4.png" alt="다음글블릿" />다음글</td>
									<td class="tle"><a href="<?=$read_url.$next_content['idx']?>"><?=$next_content['subject']?><span class="reply">(<?=$next_content['reply_cnt']?>)</span></a></td>
									<td class="writer"><?=$next_content['nickname']?></td>
									<td class="vote2"><img src="/images/common/board/icon_heart2.png" alt="공감" /><?=$next_content['recommend']?></td>
									<td class="hit"><?=$next_content['hit']?></td>
								</tr>
							</tbody>
						</table>
						<?	endif ?>
					</div>
					<!--//다음글보기-->
					
					<div class="boardbt_area">
						<?	if ($content['user_id'] == $sess_userinfo['user_id']) : ?>
							<a href="<?=$modify_url?>"><img src="/images/common/board/bt_modify.png" alt="수정" /></a>
							<a href="javascript:;" id="btn_remove"><img src="/images/common/board/bt_del.png" alt="삭제" /></a>
						<?	endif ?>
						<a href="<?=$list_url?>"><img src="/images/common/board/bt_list.png" alt="목록" /></a>
					</div>
					
				</div>
				<!--게시글보기--> 
			</div>
			<!--//리스트-->
           
		</div>
		<!--// 메인컨텐츠-->
          <!--서비스배너-->
		<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/static/bn_service.php'; ?>
		<!--//서비스배너-->
	</div>
	<!--컨텐츠-->
	
	

	<!-- Footer -->
	<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/commons/main_footer.php'; ?>
	<!--// Footer -->
</div>
</body>
</html>